home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20020314-20021006
/
000380_rgibbens@redskytech.com_Wed Sep 18 14:17:13 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2002-10-06
|
2KB
|
62 lines
Article: 13714 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!howland.erols.net!newspeer.monmouth.com!solaris.cc.vt.edu!news.vt.edu!msunews!not-for-mail
From: "Robert Gibbens" <rgibbens@redskytech.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Multiple line IF statement?
Date: Wed, 18 Sep 2002 14:10:57 -0400
Organization: Michigan State University
Lines: 43
Message-ID: <amafji$a5t$1@msunews.cl.msu.edu>
References: <amadkm$8bh$1@msunews.cl.msu.edu> <amaf98$es6$1@watsol.cc.columbia.edu>
NNTP-Posting-Host: 208.48.6.2
X-AUTHid: gibbensr
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13714
Thanks, I read most of the chapter in my "Using C-Kermit Second Edition"
book, but I didn't read anything about multi-line statements. Thanks for
the help, it was just what I needed.
"Frank da Cruz" <fdc@columbia.edu> wrote in message
news:amaf98$es6$1@watsol.cc.columbia.edu...
> In article <amadkm$8bh$1@msunews.cl.msu.edu>,
> Robert Gibbens <rgibbens@redskytech.com> wrote:
> : Is it possible in C-Kermit (Kermit 95, Win2k), to do multiple line IF
> : statements?
> :
> Sure.
>
> : For example, if I encounter a failure, I would like to write the failure
to
> : my log file and then exit. When I try this....
> :
> : if > \%a \%b -
> : WRITE File \v(exitstatus) \v(date) \v(time) \%s FAILED
> : after \%a tries, end 1
> :
> : ....it simply writes the whole line to the log file and then continues
> : running the script. I would like the "end 1" to execute also
>
> As described in the manual (second edition) and shown in the many sample
> scripts in our script library:
>
> http://www.columbia.edu/kermit/ckscripts.html
>
> if > \%a \%b {
> WRITE File \v(exitstatus) \v(date) \v(time) \%s FAILED after \%a tries
> end 1
> }
>
> You can also have an ELSE part, and you can nest them, etc. For details
> about improved IF command syntax, see:
>
> http://www.columbia.edu/kermit/ckermit70.html#x7.20
>
> - Frank